package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 紫煦桉
 */
public class VolunteerActivity extends AbstractToString {
    private Integer activityNo;
    private String activityName;
    private String activityTheme;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date activityDate;
    private Integer activityNum;
    private String activityLocation;

    public VolunteerActivity() {
    }

    public VolunteerActivity(Integer activityNo) {
        this.activityNo = activityNo;
    }

    public VolunteerActivity(Integer activityNo, String activityName, String activityTheme, Date activityDate, Integer activityNum, String activityLocation) {
        this.activityNo = activityNo;
        this.activityName = activityName;
        this.activityTheme = activityTheme;
        this.activityDate = activityDate;
        this.activityNum = activityNum;
        this.activityLocation = activityLocation;
    }

    public Integer getActivityNo() {
        return activityNo;
    }

    public void setActivityNo(Integer activityNo) {
        this.activityNo = activityNo;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getActivityTheme() {
        return activityTheme;
    }

    public void setActivityTheme(String activityTheme) {
        this.activityTheme = activityTheme;
    }

    public Date getActivityDate() {
        return activityDate;
    }

    public void setActivityDate(Date activityDate) {
        this.activityDate = activityDate;
    }

    public Integer getActivityNum() {
        return activityNum;
    }

    public void setActivityNum(Integer activityNum) {
        this.activityNum = activityNum;
    }

    public String getActivityLocation() {
        return activityLocation;
    }

    public void setActivityLocation(String activityLocation) {
        this.activityLocation = activityLocation;
    }
}
